package com.photography.wedding.service;

import com.photography.wedding.dao.NewsMapper;
import com.photography.wedding.dao.PictureMapper;
import com.photography.wedding.pojo.Menus;
import com.photography.wedding.pojo.News;
import com.photography.wedding.pojo.Picture;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewsService {
    @Autowired
    private NewsMapper newsMapper;


    public int insertSelective(News record){
        return newsMapper.insertSelective(record);
    }


    public List<News> selectNewsAll(){
        return newsMapper.selectNewsAll();
    }

    public News selectByPrimaryKey(String id){
        return newsMapper.selectByPrimaryKey(id);
    }

    public int deleteByPrimaryKey(String id){
        return newsMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(News record){
        return newsMapper.updateByPrimaryKeySelective(record);
    }

}
